from flask import Flask, request, redirect
from datetime import timedelta


app = Flask(__name__)
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = timedelta(seconds=2)


@app.route("/", methods=["GET"])
def index():
    return redirect("/index")

@app.route("/index")
def home():
    return "Welcome to my home"



if __name__ == "__main__":
    app.run(debug=True)